package com.blog.entity;

public class PageBean {
    private int page;//当前页码，从1开始
    private int pageSize;//页面大小
    private int start;//当前页面从第几条开始，从0开始

    public PageBean(int page, int pageSize) {
        this.page = page;
        this.pageSize = pageSize;
    }

    public int getPage() {
        return this.page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getPageSize() {
        return this.pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getStart() {
        return (this.page - 1) * this.pageSize;//当前页面从第几条开始=(当前页码-1)*页面容量
    }
}
